package gagak.framework.web.multipart;


import gagak.framework.web.annonation.Nullable;
import gagak.framework.web.paramresovler.requestbody.MultiValueMap;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

/*
 * This interface defines the multipart request access operations that are exposed
 * for actual multipart requests. It is extended by {@link MultipartHttpServletRequest}.
 */
public interface MultipartRequest {


	Iterator<String> getFileNames();


	@Nullable
	MultipartFile getFile(String name);


	List<MultipartFile> getFiles(String name);

	/*
	 * Return a {@link Map} of the multipart files contained in this request.
	 * @return a map containing the parameter names as keys, and the
	 * {@link MultipartFile} objects as values
	 */
	Map<String, MultipartFile> getFileMap();


	MultiValueMap<String, MultipartFile> getMultiFileMap();

	@Nullable
    String getMultipartContentType(String paramOrFileName);

}
